package com.java.comprehensive.other.config.annotation;

public class Main {

	public static void main(String[] args) throws NoSuchMethodException, SecurityException, NoSuchFieldException {
		Class<Child> clazz = Child.class;
		// 1、对类进行测试
		System.out.println("对类进行测试");
		if (clazz.isAnnotationPresent(InheritedTest.class)) {
			System.out.println(clazz.getAnnotation(InheritedTest.class).value());
		}
		if (clazz.isAnnotationPresent(UnInheritedTest.class)) {
			System.out.println(clazz.getAnnotation(UnInheritedTest.class).value());
		}
		System.out.println();
	}
}